import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/material.dart';
import 'package:kunlun_gas/AppViews/EngineerOrderView/model/meter_info_model.dart';
import '../../MainView/model/main_view_model.dart';
import '../model/normal_config_model.dart';

class EngineerGasResultViewState
    implements Cloneable<EngineerGasResultViewState> {
  FixListItemModel model;
  List<NormalConfigModel> items;
  List orderPhoto = [];
  var orderSignPhoto;
  bool isDetail = false;
  bool isSolve;
  MeterInfoModel meterInfoModel;
  List<EngineerMaterList> materList = [];
  String meterId;
  List logList = [];
  List gasMeterImg = [];
  List businessLicenseImg = [];
  List pipelineImg = [];
  List panoramagramImg = [];
  var idCardFrontImg;

  var idCardBackImg;

  String idCard = '';

  List videoUrl = [];

  @override
  EngineerGasResultViewState clone() {
    return EngineerGasResultViewState()
      ..model = model
      ..items = items
      ..meterInfoModel = meterInfoModel
      ..orderPhoto = orderPhoto
      ..orderSignPhoto = orderSignPhoto
      ..isSolve = isSolve
      ..materList = materList
      ..gasMeterImg = gasMeterImg
      ..videoUrl = videoUrl
      ..panoramagramImg = panoramagramImg
      ..pipelineImg = pipelineImg
      ..idCard = idCard
      ..logList = logList
      ..idCardBackImg = idCardBackImg
      ..meterId = meterId
      ..idCardFrontImg = idCardFrontImg
      ..businessLicenseImg = businessLicenseImg
      ..isDetail = isDetail;
  }
}

EngineerGasResultViewState initState(Map<String, dynamic> args) {
  return EngineerGasResultViewState()
    ..model = args['info']
    ..items = args['items']
    ..materList = args['materList'] ?? []
    ..meterInfoModel = args['meterInfoModel']
    ..orderPhoto = args['orderPhotos'] ?? []
    ..orderSignPhoto = args['signPhoto']
    ..isDetail = args['items'] == null;
}
